/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package we.dispatcher.reader.impl;

import we.dispatcher.CPacketReader;
import we.dispatcher.reader.IReadingProcessor;

/**
 *
 * @author ADMIN
 */
public class CStrLenReadProc implements IReadingProcessor{
    private int maxLength;
    public CStrLenReadProc(int maxLength) {
        this.maxLength = maxLength;
    }
    
    
    @Override
    public Object read(CPacketReader reader) {
        return reader.readString(maxLength);
    }
    
}
